/**
 * 
 */
package com.yunyike.response;

import java.io.Serializable;

import com.yunyike.constants.CommonConstant;
import com.yunyike.constants.ResponseConstant;

/**
 * @author zhengqiang.shi
 * 2016-4-14 下午1:32:41
 */
public class Response implements java.io.Serializable{

	private static final long serialVersionUID = 559990583966248802L;

	private Result result = new Result();
	
	private Object data;
	
	public Result getResult() {
		return result;
	}

	public void setResult(Result result) {
		this.result = result;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public class Result implements Serializable{
		
		private static final long serialVersionUID = 1L;
		private int result = 1;
		private String message = ResponseConstant.message.get(CommonConstant.NUMBER_0);;
		private int code = CommonConstant.NUMBER_0;
		public int getResult() {
			return result;
		}
		public void setResult(int result) {
			this.result = result;
		}
		public String getMessage() {
			return message;
		}
		public void setMessage(String message) {
			this.message = message;
		}
		public int getCode() {
			return code;
		}
		public void setCode(int code) {
			this.code = code;
		}
	
	}
}
